package pl.polidea.AsyncNet;

public abstract class AsyncNetTaskListener<T>
{
    
    protected final Object tag;
    
    public AsyncNetTaskListener()
    {
        this.tag = null;
    }
    
    public AsyncNetTaskListener(Object tag)
    {
        this.tag = tag;
    }
    
    protected abstract void onSuccess(T result);
    
    protected void onFailure(Exception exception)
    {
        exception.printStackTrace();
    }
    
}
